package com.company;

import java.util.Scanner;

public class OverLoading {
    public void max(int a, int b){
        System.out.println(a>b?a:b);
    }

    public void max(double a,double b){
        System.out.println(a>b?a:b);
    }

    public void max( double a,double b,int c){
        double max=(double)(a>b?a:b);
        System.out.println(a>max?a:max);
    }

    public static void main(String[] args){
        OverLoading ol=new OverLoading();
        ol.max(1,2);
        ol.max(2,6.02,4);
        ol.max(1.1,3.2);

        Scanner s = new Scanner(System.in);
        System.out.println(s);
    }
}
